package com.lovo.sys.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@TableName("admin")
@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "管理员实体", description = "管理员实体")
@ToString
public class AdminBean {
    @TableId(value = "pk_adminId", type = IdType.AUTO)
    @ApiModelProperty("管理员id")
    private long adminId;
    @TableField("a_userName")
    @ApiModelProperty("用户名")
    private String userName;
    @TableField("a_realName")
    @ApiModelProperty("真实姓名")
    private String realName;

    @TableField("a_pwd")
    @ApiModelProperty("密码")
    private String pwd="123";

    public AdminBean(String userName, String realName) {
        this.userName = userName;
        this.realName = realName;
    }
}
